home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / 6zenichu / 6+1 install_txt.exe / 6 zenichu a 1 navic.exe / scripts / DefineButton2_3131 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2003-11-28  |  1005 b   |  44 lines

  1. on(release){
  2.    if(_root.st_chirurg == 3)
  3.    {
  4.       _root.d_sestra.l = "d19_f_100";
  5.       _root.d_sestra.i = "go";
  6.    }
  7.    else if(_root.draglej == 16)
  8.    {
  9.       _root.itembar_remove(16);
  10.       _root.ii16 = 4;
  11.       _root.st_chirurg = 5;
  12.       _root.st_hermina = 1;
  13.       _root.d_sestra.l = "d19_2_100";
  14.       _root.d_sestra.i = "go";
  15.    }
  16.    else if(0 < _root.draglej)
  17.    {
  18.       if(eval("_root.d19_i" add _root.draglej add "_100") == undefined)
  19.       {
  20.          _root.d_sestra.l = "d19_iundef_100";
  21.          _root.d_sestra.i = "go";
  22.       }
  23.       else
  24.       {
  25.          _root.d_sestra.l = "d19_i" add _root.draglej add "_100";
  26.          _root.d_sestra.i = "go";
  27.       }
  28.    }
  29.    else if(_root.ii16 == 2)
  30.    {
  31.       _root.d_sestra.l = "d19_0_100";
  32.       _root.d_sestra.i = "go";
  33.       _root.ii16 = 3;
  34.    }
  35.    else
  36.    {
  37.       _root.d_sestra.l = "d19_1_100";
  38.       _root.d_sestra.i = "go";
  39.    }
  40.    _root.stopdragall();
  41.    _root.items_hide();
  42.    _root.hideall();
  43. }
  44.